package org.web.webdisplay.server.biz.impl;

import java.util.HashSet;
import java.util.Set;

public class SetHelper {
    public static <T> Set<T> getSymmetricDifference(Set<T> a, Set<T> b) {
        Set<T> diff = new HashSet<>(a);
        diff.removeAll(b);

        Set<T> temp = new HashSet<>(b);
        temp.removeAll(a);

        diff.addAll(temp);
        return diff;
    }
}
